<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>递归函数</title>
	</head>
	<body>
		<script>
			
			
			
			//递归函数
		    function jc(f) {
		        if (f === 1){
		            return 1;
		        }else {
		            return f * jc(f - 1);
		        }
		    }
		    console.log(jc(5));
		    
		    
		</script>
	</body>
</html>
